import { ADD_PERSON } from '../types'
export default function listReducer(preState = [], { type, data }) {
  switch (type) {
    case ADD_PERSON:
      return [data, ...preState]
    default:
      return preState
  }
}
